//package com.it.octoo.conf;
//
//import com.it.octoo.source.CustomerSecurityMetadataSource;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.access.vote.AffirmativeBased;
//import org.springframework.security.access.vote.RoleVoter;
//import org.springframework.security.config.annotation.ObjectPostProcessor;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer;
//import org.springframework.security.config.http.SessionCreationPolicy;
//import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter;
//import org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer;
//import org.springframework.security.web.access.intercept.FilterSecurityInterceptor;
//
//import java.util.Collections;
//
///**
// * @author miaoxiao
// * @since 2020/3/23
// */
//@Configuration
//public class UserResourceServerConfigurer extends ResourceServerConfigurerAdapter {
//
//
//    @Override
//    public void configure(HttpSecurity http) throws Exception {
//        super.configure(http);
//    }
//
//    @Override
//    public void configure(ResourceServerSecurityConfigurer resources) throws Exception {
//        resources.resourceId("oauth2-resource");
//    }
//}
